package com.hdax.dm.rest;

import com.hdax.dm.common.api.OrderControllerApi;
import com.hdax.dm.order.DmOrder;
import com.hdax.dm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderRestMapper implements OrderControllerApi {

    @Autowired
    private OrderService orderService;
    @Override
    public List<DmOrder> orders(String orderNo) {
        return orderService.orderNos(orderNo);
    }
}
